package networkCode.huawei;

import java.util.Scanner;

public class LeastCommonMultiple {
    /**
     * action1:m<n的情况下的判断
     * */
    private static int getResult(int m,int n){
        if(m>n){
            int temp;
            temp=m;
            m=n;
            n=temp;
        }
        int k;
        while(n!=0){
            k=m%n;
            m=n;
            n=k;
        }
        return m;
    }
    private static int getResult1(int m,int n){
        if(m<n){
            int temp;
            temp=m;
            m=n;
            n=temp;
        }
        int k=m%n;
        while(k>0){
            m=n;
            n=k;
            k=m%n;
        }
        return n;
    }


    public static void main(String arg[]){
        Scanner reader = new Scanner(System.in);
        while(reader.hasNext()){
            int m=reader.nextInt();
            int n=reader.nextInt();
            System.out.println(m*n/getResult1(m,n));
        }

    }
}
